This is Task 6 of the Crypto Encryption Lab.